<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="layout.xhtml">
        <ui:define name="title">
            <h2><a href="#" class="back" onclick="history.go(-1)"/>Editar Usuário</h2>
        </ui:define>

        <ui:define name="body">
            <h:form id="clienteForm" enctype="multipart/form-data">            
                <p:messages id="messages" closable="true" showDetail="true" autoUpdate="true"  />
                <p> 

                    <p:panel id="adminPanel" styleClass="container_24 clearfix">
                        <h2 style="font-size: 40px"><a href="#">Administração</a></h2>
                        <br/> 

                        <p:pickList id="pickList" value="#{managerPesquisarUsuario.dualGrupo}" var="g" 
                                    converter="grupoconverter" 
                                    itemLabel="#{g.nome}" itemValue="#{g}" 
                                    showSourceFilter="true" showTargetFilter="true" 
                                    filterMatchMode="contains" style="width: 95%; ">  

                            <f:facet name="sourceCaption">Disponíveis</f:facet>  
                            <f:facet name="targetCaption">Selecionados</f:facet>  

                        </p:pickList>

                    </p:panel> 
                    <br/>
                    <div class="buttonAction">
                        <p:commandButton value="Salvar" actionListener="#{managerCriarUsuario.salvar()}"
                                         icon="ui-icon-disk" styleClass="ui-priority-primary"
                                         update="@form" process="@form" />
                        <p:button value="Cancelar" icon="ui-icon-close"
                                  href="pesquisarusuario.xhtml"
                                  />
                    </div>
                </p>
            </h:form>


        </ui:define>
    </ui:composition>
</html>



